package com.apestech.formwork.xml.core.var;

/**
 * @author hup
 * @create 2018-12-06-11:11
 * Mapping相关参数配置
 */
public class NodeVarMapping {
    private static String NESTED="nested";    //子关联,指令式XML里存在循环处理逻辑
    private static String FIELD="field";    //字段结点  mapping专用
    private static String FIELD_NESTED_ID="id";   //子表对应ID主键名
    private static String TABLE_NAME="tablename";    //表名

    private static String FIELD_ID="attrname";    //字段ID
    private static String TARGET="target";    //目标
    private static String FIELD_TYPE="fieldtype";    //字段类型
    private static String FIELD_NAME="name";    //中文名称
    private static String ALLOW_NULL="allownull";    //允许为空
    private static String DEFAULT_VALUE="defaultValue";    //默认值
    private static String FIELD_CHECK="check";    //数据检查
    private static String VALUE="value";    //值
    private static String MATH="math";    //数学公式
    private static String EXPRESS="express";    //公式

    public static void setFIELD(String field) {
        FIELD = field;
    }

    public static void setFieldNestedId(String fieldNestedId) {
        FIELD_NESTED_ID = fieldNestedId;
    }

    public static void setFieldId(String fieldId) {
        FIELD_ID = fieldId;
    }

    public static void setTARGET(String target) {
        TARGET = target;
    }

    public static void setFieldType(String fieldType) {
        FIELD_TYPE = fieldType;
    }

    public static void setFieldName(String fieldName) {
        FIELD_NAME = fieldName;
    }

    public static void setAllowNull(String allowNull) {
        ALLOW_NULL = allowNull;
    }

    public static void setDefaultValue(String defaultValue) {
        DEFAULT_VALUE = defaultValue;
    }

    public static void setFieldCheck(String fieldCheck) {
        FIELD_CHECK = fieldCheck;
    }

    public static void setVALUE(String value) {
        VALUE = value;
    }

    public static void setMATH(String math) {
        MATH = math;
    }

    public static void setTableName(String tableName) {
        TABLE_NAME = tableName;
    }

    public static String getFIELD() {
        return FIELD;
    }

    public static String getFieldNestedId() {
        return FIELD_NESTED_ID;
    }

    public static String getTableName() {
        return TABLE_NAME;
    }

    public static String getFieldId() {
        return FIELD_ID;
    }

    public static String getTARGET() {
        return TARGET;
    }

    public static String getFieldType() {
        return FIELD_TYPE;
    }

    public static String getFieldName() {
        return FIELD_NAME;
    }

    public static String getAllowNull() {
        return ALLOW_NULL;
    }

    public static String getDefaultValue() {
        return DEFAULT_VALUE;
    }

    public static String getFieldCheck() {
        return FIELD_CHECK;
    }

    public static String getVALUE() {
        return VALUE;
    }

    public static String getMATH() {
        return MATH;
    }

    public static void setEXPRESS(String express) {
        EXPRESS = express;
    }

    public static String getEXPRESS() {
        return EXPRESS;
    }

    public static void setNESTED(String nested) {
        NESTED = nested;
    }

    public static String getNESTED() {
        return NESTED;
    }

}
